package com.zczy.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 项目表
 * </p>
 *
 * @author xcl
 * @since 2021-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZczyItem对象", description="项目表")
public class ZczyItem implements Serializable {
    private ZczyItem(Integer id, Integer userId, Integer type, Integer category, String title, String detailImg, String listImg, String brief, String description, String itemreturns, BigDecimal targetAmount, BigDecimal perMoney, BigDecimal actAmount, Integer status, String beginTime, String endTime, String zcDays, String image, Integer isBeyond, Integer isRecommend, String isEffect, Integer province, String provinceName, Integer city, String cityName, String location, Integer views, Integer doLike, String createTime, String createBy, String updateTime, String updateBy) {
        this.id = id;
        this.userId = userId;
        this.type = type;
        this.category = category;
        this.title = title;
        this.detailImg = detailImg;
        this.listImg = listImg;
        this.brief = brief;
        this.description = description;
        this.itemreturns = itemreturns;
        this.targetAmount = targetAmount;
        this.perMoney = perMoney;
        this.actAmount = actAmount;
        this.status = status;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.zcDays = zcDays;
        this.image = image;
        this.isBeyond = isBeyond;
        this.isRecommend = isRecommend;
        this.isEffect = isEffect;
        this.province = province;
        this.provinceName = provinceName;
        this.city = city;
        this.cityName = cityName;
        this.location = location;
        this.views = views;
        this.doLike = doLike;
        this.createTime = createTime;
        this.createBy = createBy;
        this.updateTime = updateTime;
        this.updateBy = updateBy;
    }

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "发起人id")
    private Integer userId;

    @ApiModelProperty(value = "项目类型1:综合权益类，2：股权交易类")
    private Integer type;

    @ApiModelProperty(value = "分类id")
    private Integer category;

    @ApiModelProperty(value = "项目标题")
    private String title;

    @ApiModelProperty(value = "详情页头图")
    private String detailImg;

    @ApiModelProperty(value = "列表页头图")
    private String listImg;

    @ApiModelProperty(value = "项目简介")
    private String brief;

    @ApiModelProperty(value = "项目内容")
    private String description;

    @ApiModelProperty(value = "回报内容")
    private String itemreturns;

    @ApiModelProperty(value = "目标金额")
    private BigDecimal targetAmount;

    @ApiModelProperty(value = "起投金额")
    private BigDecimal perMoney;

    @ApiModelProperty(value = "已筹金额")
    private BigDecimal actAmount;

    @ApiModelProperty(value = "状态(1：上线)")
    private Integer status;

    @ApiModelProperty(value = "开始时间")
    private String beginTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "众筹天数")
    private String zcDays;

    @ApiModelProperty(value = "项目缩略图")
    private String image;

    @ApiModelProperty(value = "是否可以超额（1;是，0否）")
    private Integer isBeyond;

    @ApiModelProperty(value = "是否推荐1:是，0：否")
    private Integer isRecommend;

    @ApiModelProperty(value = "是否成功1:是，0：否")
    private String isEffect;

    @ApiModelProperty(value = "所在省id")
    private Integer province;

    @ApiModelProperty(value = "省名")
    private String provinceName;

    @ApiModelProperty(value = "所在市id")
    private Integer city;

    @ApiModelProperty(value = "市名")
    private String cityName;

    @ApiModelProperty(value = "项目位置")
    private String location;

    @ApiModelProperty(value = "浏览量")
    private Integer views;

    @ApiModelProperty(value = "点赞数")
    private Integer doLike;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "创建人")
    @TableField("createBy")
    private String createBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    @TableField("updateBy")
    private String updateBy;


}
